﻿using System.Configuration;
using Framework;

namespace Enterprise
{
    public class WorKShopConfig : ConfigService
    {
        static WorKShopConfig()
        {
            ThumbnailWidth = ConfigurationManager.AppSettings["WorKShopThumbnailWidth"].SafeToInt();
            ThumbnailHeight = ConfigurationManager.AppSettings["WorKShopThumbnailHeight"].SafeToInt();
            ImageSize = ConfigurationManager.AppSettings["WorKShopImageSize"].SafeToInt();
            NormalWidth = ConfigurationManager.AppSettings["WorKShopNormalWidth"].SafeToInt();
            NormalHeight = ConfigurationManager.AppSettings["WorKShopNormalHeight"].SafeToInt();
            NormalPrefix = ConfigurationManager.AppSettings["WorKShopNormalPrefix"].SafeToString();
            //IsWaterMark = ConfigurationManager.AppSettings["IsWorKShopWaterMark"].SafeToBool();
            //WaterMarkFileName = ConfigurationManager.AppSettings["WorKShopWaterMarkFileName"].SafeToString();
            //WaterMarkRelativePath = ConfigurationManager.AppSettings["WorKShopWaterMarkRelativePath"].SafeToString();
        }

        public new static int ThumbnailWidth { get; set; }

        public new static int ThumbnailHeight { get; set; }

        public new static int ImageSize { get; set; }

        public new static int NormalWidth { get; set; }

        public new static int NormalHeight { get; set; }

        public new static string NormalPrefix { get; set; }

        public new static bool IsWaterMark { get; set; }

        public new static string WaterMarkFileName { get; set; }

        public new static string WaterMarkRelativePath { get; set; }
    }
}
